package demo06Object;

public class TestStudent2 {
    public static void main(String[] args) {
/*        Student student1 = new Student("aaa",20);
        Student student2 = new Student("bbb",20);
        Student student3 = new Student("ccc",20);
        Student student4 = new Student("ddd",20);
        Student student5 = new Student("eee",20);*/
        new Student("aaa",20);
        new Student("bbb",20);
        new Student("ccc",20);
        new Student("ddd",20);
        new Student("eee",20);
        //回收垃圾
        System.gc();
        System.out.println("回收垃圾");

    }
}
